home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / scud3 / scud.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-05-08  |  5.3 KB  |  173 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    BorderStyle     =   1  'Fixed Single
  4.    Caption         =   "Iraqi Missile"
  5.    ClientHeight    =   4005
  6.    ClientLeft      =   1365
  7.    ClientTop       =   1770
  8.    ClientWidth     =   5550
  9.    Height          =   4410
  10.    Icon            =   SCUD.FRX:0000
  11.    Left            =   1305
  12.    LinkMode        =   1  'Source
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    ScaleHeight     =   4005
  16.    ScaleWidth      =   5550
  17.    Top             =   1425
  18.    Width           =   5670
  19.    Begin Timer HSPTimer 
  20.       Enabled         =   0   'False
  21.       Interval        =   1000
  22.       Left            =   480
  23.       Top             =   3645
  24.    End
  25.    Begin Timer TenSecondClock 
  26.       Enabled         =   0   'False
  27.       Interval        =   2500
  28.       Left            =   195
  29.       Top             =   3645
  30.    End
  31.    Begin PictureBox Picture2 
  32.       Height          =   2076
  33.       Left            =   3720
  34.       Picture         =   SCUD.FRX:0302
  35.       ScaleHeight     =   2040
  36.       ScaleWidth      =   1665
  37.       TabIndex        =   3
  38.       Top             =   1896
  39.       Width           =   1692
  40.    End
  41.    Begin CommandButton Command2 
  42.       Caption         =   "Hide SCUD!"
  43.       Enabled         =   0   'False
  44.       Height          =   375
  45.       Left            =   3600
  46.       TabIndex        =   1
  47.       Top             =   600
  48.       Width           =   1815
  49.    End
  50.    Begin CommandButton Command1 
  51.       Caption         =   "Show SCUD!"
  52.       Height          =   375
  53.       Left            =   3600
  54.       TabIndex        =   0
  55.       Top             =   120
  56.       Width           =   1815
  57.    End
  58.    Begin PictureBox Picture1 
  59.       Height          =   3468
  60.       Left            =   96
  61.       ScaleHeight     =   3435
  62.       ScaleWidth      =   3435
  63.       TabIndex        =   5
  64.       Top             =   96
  65.       Width           =   3468
  66.    End
  67.    Begin Label Label2 
  68.       Caption         =   "Click on the SCUD!"
  69.       Height          =   252
  70.       Left            =   960
  71.       TabIndex        =   4
  72.       Top             =   3648
  73.       Width           =   1812
  74.    End
  75.    Begin Label Label1 
  76.       Caption         =   "Click the MICOM logo to blow away the SCUD program!"
  77.       Height          =   615
  78.       Left            =   3600
  79.       TabIndex        =   2
  80.       Top             =   1080
  81.       Width           =   1815
  82.    End
  83. Dim IgnoreScudHits As Integer
  84. Sub Command1_Click ()
  85.     Form1.BackColor = Picture2.BackColor
  86.     TenSecondClock.Enabled = 1
  87.     HSPTimer.Enabled = 1
  88.     Picture1.Visible = 1
  89.     Label2.Visible = 1
  90.     Command1.Enabled = 0
  91.     Command2.Enabled = 1
  92. End Sub
  93. Sub Command2_Click ()
  94.     TenSecondClock.Enabled = 0
  95.     HSPTimer.Enabled = 0
  96.     Picture1.Visible = 0
  97.     Command2.Enabled = 0
  98.     Command2.Caption = "Hide SCUD!"
  99.     Command1.Enabled = 1
  100.     Label2.Visible = 0
  101.     Form1.BackColor = Picture2.BackColor
  102.     Label2.BackColor = Picture2.BackColor
  103.     Label1.BackColor = Picture2.BackColor
  104.     Form1.Icon = Form2.TrashOut.Picture
  105. End Sub
  106. Sub Form_Load ()
  107.     Load Form2
  108.     MsgBox "Brought to you by" + Chr$(13) + Chr$(10) + "Microsoft Visual Basic" + Chr$(13) + Chr$(10) + "and US Army MICOM Friends!" + Chr$(13) + Chr$(10) + "(We're the PATRIOT People!)", 64, "Thank You, Desert Storm!"
  109.     IgnoreScudHits = 0
  110.     Picture1.Visible = 0
  111.     Picture1.Picture = Form2.PictureScud.Picture
  112.     TenSecondClock.Enabled = 0
  113.     HSPTimer.Enabled = 0
  114.     Label2.Visible = 0
  115. End Sub
  116. Sub Form_Unload (Cancel As Integer)
  117.     Picture2_Click
  118. End Sub
  119. Sub HSPTimer_Timer ()
  120.     If Command2.Enabled Then
  121.         If Command2.Caption = "Hide SCUD!" Then
  122.             Command2.Caption = "USAF ATTACK!"
  123.             Form1.Icon = Form2.TrashBurning.Picture
  124.         Else
  125.             Command2.Caption = "Hide SCUD!"
  126.             Form1.Icon = Form2.TrashOut.Picture
  127.         End If
  128.     End If
  129. End Sub
  130. Sub Picture1_Click ()
  131.     Dim BoxReply As Integer
  132.     If IgnoreScudHits = 0 Then
  133.         Label2.Visible = 0
  134.         Picture1.Picture = Form2.PictureSaddam.Picture
  135.         BoxReply = MsgBox("Don't hit my Scuds!" + Chr$(13) + Chr$(10) + "I've had enough!", 512 + 16 + 2, "A Message from Saddam...")
  136.         If BoxReply = 3 Then
  137.             End
  138.         ElseIf BoxReply = 5 Then
  139.             IgnoreScudHits = 1
  140.         End If
  141.         Picture1.Picture = Form2.PictureScud.Picture
  142.         Label2.Visible = 1
  143.     Else
  144.         If Form1.BackColor < 0 Then
  145.             Form1.BackColor = RGB(255, 0, 0)
  146.         ElseIf Form1.BackColor = RGB(255, 0, 0) Then
  147.             Form1.BackColor = RGB(0, 255, 0)
  148.         ElseIf Form1.BackColor = RGB(0, 255, 0) Then
  149.             Form1.BackColor = RGB(0, 0, 255)
  150.         ElseIf Form1.BackColor = RGB(0, 0, 255) Then
  151.             Form1.BackColor = RGB(255, 0, 0)
  152.         Else
  153.             Beep
  154.         End If
  155.         Label1.BackColor = Form1.BackColor
  156.         Label2.BackColor = Form1.BackColor
  157.     End If
  158. End Sub
  159. Sub Picture2_Click ()
  160.     Command2_Click
  161.     Picture1.Picture = Form2.PictureNuke.Picture
  162.     Picture1.Visible = 1
  163.     MsgBox "SCUD blown from the face of the earth!", 64, "Bye, Bye SCUD!"
  164.     End
  165. End Sub
  166. Sub TenSecondClock_Timer ()
  167.     If Form1.Caption = "Iraqi Missile" Then
  168.         Form1.Caption = "Busted SCUD!"
  169.     Else
  170.         Form1.Caption = "Iraqi Missile"
  171.     End If
  172. End Sub
  173.